<style>
body {
	text-align:center;
	margin:0px;
}

#booked_del_list_content {
	position: absolute;
	z-index: auto;
	height: auto;
	width: 1000px;
	left:0px;
	top:80px;
}
#booked_del_list_menu {
	width:400px;
	padding-left:20px;
	height:auto;
	text-align:left;

	
}
#booked_del_list_top {
	width:900px;
	height:auto;
	margin-top:10px;
	padding-left:50px;
	font-family:"ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	font-size:14px;

}

#booked_del_list_content #booked_del_list_top table {
	font-family: "ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	font-size: 14px;
	text-align: center;
}
</style>
	<!--{include /service/service_head}-->
	<div id="booked_del_list_content">
	<div id="booked_del_list_menu">
		<ul>
			${bookmanage_backend($oauthMap)}
		</ul>
	</div>
	
	<div id="booked_del_list_top">
		<form action="/service/bookDelList.php" id="indexform" method="get">
			<input type="text" name="search_date" value="{$year}-${sprintf("%02d",$month)}-${sprintf("%02d",$day)}" onfocus="WdatePicker({lang:'jp'})" class="Wdate"/>
			<input type="submit" name="" value="検索" />
		</form>
		<table border="1" cellpadding="3" cellspacing="0" width="900">
		<tr>
			<td>お客様</td><td>予約コース</td><td>予約開始時間</td><td>予約終了時間</td><td>実際終了時間</td>
			<td>指名</td><td>担当スタッフ</td><td>整備</td><td>削除者</td><td>削除時間</td>
		</tr>
		
			
			<!--{loop $bookedList $index $one}-->
			<tr>
			<?php
				$tempUser = Users::GetUser($one['user_id']);
				$tempService = Service::GetById($one['service_id']);
				$tempStaff = Staff::getById($one['designation_stuff']);
				$tempDevice = Devices::GetById($one['device_id']);
				$opUser = Users::GetUser($one['op_id']);
			?>
			
			<td>
				{$tempUser['family_name']} {$tempUser['personal_name']}
			</td>
			<td>
				{$tempService['service_name']}
			</td>
			<td>
				${date("y-d-m H:i", $one['service_start_time'])}
			</td>
			<td>
				${date("y-d-m H:i", $one['service_end_time'])}
			</td>
			<td>
				${date("y-d-m H:i", $one['real_end_time'])}
			</td>
			<td>
				<!--{if $one['designation']==0}-->
				指名なし
				<!--{else}-->
				指名
				<!--{/if}-->
			</td>
			<td>
				{$tempStaff['family_name']} {$$tempStaff['personal_name']}
			</td>
			<td>
				{$tempDevice['device_name']}
			</td>
			<td>
				<!--{if $one['op_id']==$one['user_id']}-->
				お客様自分
				<!--{else}-->
				{$opUser['family_name']} {$opUser['personal_name']}
				<!--{/if}-->
			</td>
			<td>
				${date("y-d-m H:i", $one['create_time'])}
			</td>
			</tr>
			<!--{/loop}-->		
		
		</table>
	</div>
	</div>
</body>
</html>
<script type="text/javascript"> 

</script> 
</html> 